package com.xjscrm.server.mapper;

import com.xjscrm.common.entity.GroupPullConfigDevice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GroupPullConfigDeviceMapper {
    int deleteById(@Param("id") Long id);

    int insert(GroupPullConfigDevice record);

    int insertSelective(GroupPullConfigDevice record);

    GroupPullConfigDevice selectById(@Param("id") Long id);

    GroupPullConfigDevice selectByTaskIdAndDeviceUniqueId(@Param("planId") Long planId, @Param("deviceUniqueId") Long deviceUniqueId);

    List<GroupPullConfigDevice> selectByDeviceUniqueIdAndType(@Param("type") Integer type, @Param("deviceUniqueId") Long deviceUniqueId, @Param("merId") Long merId);

    int updateByIdSelective(GroupPullConfigDevice record);

    int updateById(GroupPullConfigDevice record);
}